package com.trg.designmodel.composite;


/**
 * @ClassName: Universtiy
 * @Description: 叶子节点
 * @Author: tangrg
 * @Date: 2021/7/7 11:34
 * @Version: 1.0
 * @Return:
 **/
public class Department extends OrganizationComponent {

    public Department(String name, String desc) {
        super(name, desc);
    }


    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public String getDesc() {
        return super.getDesc();
    }

    /**
     * 输出University中包含的college
     */
    @Override
    protected void print() {
        System.out.println(getName());
    }
}
